package com.ruoyi.qualityControl.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum QcInfoIndexExamineAccuracyEnum
{
    collectDate("collectDate", "统计日期"),
    contractArea("contractArea[networkName]", "网点名称"),
    networkName("networkName[networkName]", "所属网点名称"),
    receiveTotalAmount("receiveTotalAmount", "揽收总量"),
    deliveryTotalAmount("deliveryTotalAmount", "派件总量"),
    signTotalAmount("signTotalAmount", "签收总量"),
    scanTotalAmount("scanTotalAmount", "扫描总量"),
    problemAmount("problemAmount", "问题单量"),
    receiveLateDelivery("receiveLateDelivery", "揽收晚于派件量"),
    receiveLateSign("receiveLateSign", "揽收晚于签收量"),
    deliveryLateSign("deliveryLateSign", "派件晚于签收量"),
    noAccuracyRate("noAccuracyRate", "不准确率"),
    arrAfterSignCount("arrAfterSignCount", "到件晚于签收量"),
    arrIssuePerStr("arrIssuePerStr", "到件不准确率");

    private final String code;
    private final String info;

    QcInfoIndexExamineAccuracyEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (QcInfoIndexExamineAccuracyEnum value : QcInfoIndexExamineAccuracyEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
